package com.cango.student.guava;

import com.google.common.cache.CacheBuilder;
import com.google.common.cache.LoadingCache;

import java.util.concurrent.atomic.AtomicLong;

/**
 * @program: student
 * @description:
 * @author: xie jiefeng
 * @create: 2019-04-30 13:54
 */
public class CacheLoader {

    public static void main(String[] args) {
        LoadingCache<String, Integer> loadingCache = CacheBuilder.newBuilder().concurrencyLevel(2).build(
                new com.google.common.cache.CacheLoader<String, Integer>() {
                    @Override
                    public Integer load(String s) throws Exception {
                        return null;
                    }
                }
        );
    }
}
